<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Binh
 * Date: 1/7/14
 * Time: 9:27 AM
 * To change this template use File | Settings | File Templates.
 */
?>
<div id="divSingerConent" style="float: left;">
    <div id="divSinger" style="float: left;">
        <span>
            Ca sĩ: <?php echo $singer['SINGER_NAME'];?>
            <br/>
            Thể loại nhạc: <?php echo $singer['GENRE_NAME'];?>
            <br />
            Chi tiết: <?php if(!empty($singer['DESCRIPTION'])){
                echo $singer['DESCRIPTION'];
            }else{
                echo ' Chưa cập nhật';
            } ?>
        </span>
    </div>

    <div id="divSongofSinger" style="float:left;">
        <span class="nameContent"> Danh sách bài hát </span>
        <?php
        if(!$songs){
            echo "<h1>Không tìm thấy bài hát mà ca sĩ này thể hiện</h1>";
        }
        else{
        ?>
        <ul id="listContent">
            <?php foreach($songs as $song){ ?>
                <li class="aSong">
                    <div class="songName">
                        <?php echo Asset::img('home/songIcon.png'); ?>
                        <a href="<?php echo Uri::create('song/play_song/').$song['SONG_ID']; ?>" >
                            <?php echo $song['SONG_NAME']; ?>
                        </a>
                    </div>
                    <div class="singerName">
                        <?php echo Asset::img('home/micIcon.png'); ?>
                        <?php echo $song['SINGER_NAME']; ?> </div>
                    <div class="View">
                        <?php echo Asset::img('home/headphoneIcon.png'); ?>
                        <?php echo $song['VIEW'];?> </div>
                </li>
            <?php } ?>
        </ul>
        <?php
        }
        ?>
    </div>
</div>